package part5assistclass;

/**
 * countdownlatch实验对照组
 * 0 start
 * main end
 * 1 start
 * 2 start
 * 3 start
 * 4 start
 * 5 start
 */
public class CountDownLatchTest01 {

    public static void main(String[] args) {
        for (int i = 0; i < 6; i++) {
            new Thread(() -> {
                System.out.println(Thread.currentThread().getName() + " start");
            }, String.valueOf(i)).start();
        }

        System.out.println(Thread.currentThread().getName() + " end");
    }


}
